<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title><s:text name="newspaper.add.news.content" /></title>
<%
%>
<script src="<%=request.getContextPath()%>/scripts/validate.js" type="text/javascript"></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/cms/js/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/cms/js/jquery_ui/ui/jquery-ui-1.8.custom.min.js"></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/cms/js/jquery_ui/plugins/localisation/jquery.localisation-min.js"></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/cms/js/jquery_ui/plugins/scrollTo/jquery.scrollTo-min.js"></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/cms/js/jquery_ui/ui/ui.multiselect.js"></script>
<link rel="stylesheet" href="<%=request.getContextPath()%>/cms/css/main.css" type="text/css" />
<link rel="stylesheet" href="<%=request.getContextPath()%>/cms/css/jqgrid/ui.multiselect.css" type="text/css" />
<link rel="stylesheet" href="<%=request.getContextPath()%>/cms/css/jquery_ui/jquery-ui-1.7.3.custom.css" type="text/css"></link>
<link rel="stylesheet" href="<%=request.getContextPath()%>/cms/css/jqgrid/ui.jqgrid.css" type="text/css"></link>
<script type="text/javascript">
$(function(){
	$.localise('ui-multiselect', {language: 'en', path: '<%=request.getContextPath()%>/cms/js/jquery_ui/locale/'});
	$(".multiselect").multiselect();
});
			
function validateAndSubmit()
{
	$('#selectbuttons')[0].value="";
	var oData = $("#selbuttons option:selected");
	for (var i=0;i<oData.length;i++) 
	{ 
		
		$('#selectbuttons')[0].value += oData[i].value+",";
		//alert(oData[i].text +" == "+$('#selectbuttons')[0].value);
	} 
	if(document.addForm.selectbuttons.value!="")
	{
		var str=document.addForm.selectbuttons.value;
		str=str.substring(0,str.length-1);
		document.addForm.selectbuttons.value=str;
	}
	document.addForm.submit();
}

var dg = frameElement.dg;
function cancel()
{
	dg.cancel();
}
</script>
</head>
<body>
<div class="ui-jqdialog-content ui-widget-content" style="padding:0 2px 0 2px;margin:0 2px 0 2px">
<form action="areachannel!relationChannels.do" method="post" name="addForm" id="addForm">
<s:hidden name="areainfo.areaid"></s:hidden>
<table cellspacing="0" border="0" cellpadding="0" style="width:100%;font-size:18px;" class="EditTable">
<tbody>
	<tr style="height: 100px">
		<td colspan="3">
			&nbsp;
		</td>
	</tr>
	<tr class="FormData" align="center">
		<td>
			<a href="areachannel!preRelationChannels.do?areainfo.areaid=<s:property value='areainfo.areaid'/>">分地区栏目</a>
		</td>
		<td>
			<a href="areachannel!preRelationfoodChannels.do?areainfo.areaid=<s:property value='areainfo.areaid'/>">菜价行情栏目</a>
		</td>
	</tr>
	<tr style="height: 100px">
		<td colspan="3">
			&nbsp;
		</td>
	</tr>
</tbody>
</table>
<table border="0" id="TblGrid_jsontable_2" class="EditTable" style="width:100%;font-size:12px;">
<tbody>
	<tr id="Act_Buttons">
		<td class="navButton ui-widget-content"></td>
		<td class="EditButton ui-widget-content">
			<a class="fm-button ui-state-default ui-corner-all fm-button-icon-left" 
				onclick="validateAndSubmit();" id="sData" ><s:text name="label.confirm" />
			<span class="ui-icon ui-icon-disk"></span>
			</a>
			<a class="fm-button ui-state-default ui-corner-all fm-button-icon-left" onclick="cancel();" id="cData">
			<s:text name="label.close" />
			<span class="ui-icon ui-icon-close"></span>
			</a>
		</td>
	</tr>
</tbody>
</table>
</form>
</div>
</body>
</html>


